﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="FileUploadControls.ascx.cs" Inherits="MedicalCare.UserControls.FileUploadControls" %>

<link href="../Scripts/jquery.uploadify/uploadify.css" rel="stylesheet" type="text/css" />
<script src="../Scripts/jquery/jquery-1.4.1.js" type="text/javascript"></script>
<script src="../Scripts/jquery.uploadify/jquery.uploadify.min.js" type="text/javascript"></script>
<script type="text/javascript">
    $(document).ready(function () {
        $("#uploadify").uploadify({
            'uploader': '../Scripts/jquery.uploadify/uploadify.swf',
            'script': 'Handler/UploadHandler.ashx',
            'cancelImg': '../Scripts/jquery.uploadify/cancel.png',
            'folder': 'UploadFile',
            'queueID': 'Imgfile',
            'auto': false,
            'multi': true
        });
    });  
    </script>
 <table>
            <tr>
                <td>
                    内容：
                </td>
                <td>
                    <asp:TextBox ID="tbCommment" runat="server" Rows="5" Width="305px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    图片：
                </td>
                <td>
                    <div id="Imgfile"></div>
                     <input type="file" name="uploadify" id="uploadify" />
                        <p>
                          <a href="javascript:$('#uploadify').uploadifyUpload()">上传</a>| 
                          <a href="javascript:$('#uploadify').uploadifyClearQueue()">取消上传</a>
                        </p>
                </td>
            </tr>
            <tr>
                <td>
                    视频：
                </td>
                <td>
                    
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:Button ID="btnAddComment" runat="server" Text="提交" OnClick="btnAddComment_Click" />
                </td>
            </tr>
        </table>